package com.thread;

public class Test extends Thread {

	@Override
	public void run() {
		this.setName("thread 1");
		System.out.println(this.getName() + "...............");
	}
	
	public static void main(String[] args){
		System.out.println(Thread.currentThread().getName());
		Test test = new Test();
		test.start();
	}

}
